import http from '@/utils/http'

/**
 * 获取商品列表
 * @param {*} id
 * @returns
 */
export const getGoodsListAPI = id => {
  return http({ url: '/goods', data: { id } })
}

/**
 * 同类推荐
 * @returns
 */
export const getGoodsRelevantAPI = () => {
  return http({
    url: '/goods/relevant'
  })
}
